import api from './index'
import { axios } from '@/utils/request'
import Qs from 'qs'

export function getMenuButtonsByRoleID(parameter) {
  return axios({
    url: api.GetMenuButtonsByRoleID,
    method: 'get',
    params: parameter
  })
}
export function saveMenuButtons(parameter) {
  return axios({
    url: api.SaveMenuButtons,
    method: 'post',
    data: Qs.stringify(parameter)
  })
}